package org.xteam.box2text.oaw;

import java.util.Collection;
import java.util.List;

public class NotEmptyPrimitive extends Primitive {

	@Override
	public Object evaluate(List<Object> arguments) {
		Object arg = arguments.get(0);
		return arg != null && ((Collection)arg).size() > 0;
	}

	@Override
	public String getName() {
		return "notEmpty";
	}

}
